package com.xdb.sqlparser.dialect.oracle.ast.expr;

import com.xdb.sqlparser.ast.SQLExpr;
import com.xdb.sqlparser.dialect.oracle.ast.OracleSQLObjectImpl;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;

public class OracleRangeExpr extends OracleSQLObjectImpl implements SQLExpr {

	private SQLExpr lowBound;
	private SQLExpr upBound;

	public OracleRangeExpr() {

	}

	public OracleRangeExpr(SQLExpr lowBound, SQLExpr upBound) {
		this.lowBound = lowBound;
		this.upBound = upBound;
	}

	@Override
	public void accept0(OracleASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, lowBound);
			acceptChild(visitor, upBound);
		}
		visitor.endVisit(this);
	}

	public SQLExpr getLowBound() {
		return lowBound;
	}

	public void setLowBound(SQLExpr lowBound) {
		this.lowBound = lowBound;
	}

	public SQLExpr getUpBound() {
		return upBound;
	}

	public void setUpBound(SQLExpr upBound) {
		this.upBound = upBound;
	}

}
